home *** CD-ROM | disk | FTP | other *** search
- property pInvoiceLine, spriteNum
- global PaymentInvoiceList
-
- on getPropertyDescriptionList
- description = [:]
- addProp(description, #pInvoiceLine, [#default: 0, #format: #number, #comment: "Invoice Line:"])
- return description
- end
-
- on beginSprite me
- checkCheckPos()
- end
-
- on checkCheckPos me
- tt = PaymentInvoiceList.count
- if tt > 6 then
- tt = 6
- end if
- if pInvoiceLine > tt then
- if sprite(spriteNum).locV > 0 then
- sprite(spriteNum).locV = sprite(spriteNum).locV - 600
- end if
- else
- if value(member("payfield:Payment" & string(pInvoiceLine)).text) > 0.0 then
- if sprite(spriteNum).locV < 0 then
- sprite(spriteNum).locV = sprite(spriteNum).locV + 600
- end if
- else
- if sprite(spriteNum).locV > 0 then
- sprite(spriteNum).locV = sprite(spriteNum).locV - 600
- end if
- end if
- end if
- end
-